import request from '@/utils/request'

// 查询案件信息列表
export function listEvent(query) {
  return request({
    url: '/frontierEvent/event/list',
    method: 'get',
    params: query
  })
}

// 事件上报审核查询案件信息列表
export function queryAuditListForMap(query) {
  return request({
    url: '/frontierEvent/event/queryAuditListForMap',
    method: 'get',
    params: query
  })
}
// 事件上报审核查询案件信息列表
export function queryAuditList(query) {
  return request({
    url: '/frontierEvent/event/queryAuditList',
    method: 'get',
    params: query
  })
}
// 查询案件信息详细
export function getEvent(id) {
  return request({
    url: '/frontierEvent/event/' + id,
    method: 'get'
  })
}

// 新增案件信息
export function addEvent(data) {
  return request({
    url: '/frontierEvent/event',
    method: 'post',
    data: data
  })
}

// 新增案件信息
export function alarmAddEvtInfo(data) {
  return request({
    url: '/frontierEvent/event/alarmAddEvtInfo',
    method: 'post',
    data: data
  })
}

// 修改案件信息
export function updateEvent(data) {
  return request({
    url: '/frontierEvent/event',
    method: 'put',
    data: data
  })
}

// 删除案件信息
export function delEvent(id) {
  return request({
    url: '/frontierEvent/event/' + id,
    method: 'delete'
  })
}

// 导出案件信息
export function exportEvent(query) {
  return request({
    url: '/frontierEvent/event/export',
    method: 'get',
    params: query
  })
}

// 导出巡护上报
export function exportSFEvent(query) {
  return request({
    url: '/frontierEvent/event/exportsf',
    method: 'get',
    params: query
  })
}

export function listEventInfoSourceStatistics(query) {
  return request({
    url: '/frontierEvent/event/listEventInfoSourceStatistics',
    method: 'get',
    params: query
  })
}

export function listViolationStatistics(query) {
  return request({
    url: '/frontierEvent/event/listViolationStatistics',
    method: 'get',
    params: query
  })
}

export function typeStatistics(query) {
  return request({
    url: '/frontierEvent/event/typeStatistics',
    method: 'get',
    params: query
  })
}

export function analysisStatistics(query) {
  return request({
    url: '/frontierEvent/event/analysisStatistics',
    method: 'get',
    params: query
  })
}

export function policeInformationStatistics(query) {
  return request({
    url: '/frontierEvent/event/policeInformationStatistics',
    method: 'get',
    params: query
  })
}

export function policeLevelStatistics(query) {
  return request({
    url: '/frontierEvent/event/policeLevelStatistics',
    method: 'get',
    params: query
  })
}

export function infoSourceStatisticsExport(query) {
  return request({
    url: '/frontierEvent/event/infoSourceStatisticsExport',
    method: 'get',
    params: query
  })
}

export function violationStatisticsExport(query) {
  return request({
    url: '/frontierEvent/event/violationStatisticsExport',
    method: 'get',
    params: query
  })
}

export function typeStatisticsExport(query) {
  return request({
    url: '/frontierEvent/event/typeStatisticsExport',
    method: 'get',
    params: query
  })
}


